/**
 * 
 */
package t4j.concurrency;

public class Fat {

	private volatile double d;
	private static int counter = 0;
	private final int id = counter++;

	public Fat() {
		for (int i = 1; i < 10000; i++)
			d += (Math.PI + Math.E) / (double) i;
	}

	/**
	 * 打印Fat
	 */
	public void operation() {
		System.out.println(this);
	}

	public String toString() {
		return "Fat id: " + id;
	}
}
